// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:24

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   rs.java

package com.zelix;

import java.io.*;
import java.util.Hashtable;

// Referenced classes of package com.zelix:
//            is, ks, ws, xs, 
//            h5, iu, jm, yg, 
//            at, jb

public abstract class rs extends is
    implements h5
{

    ks i;
    ws j;
    iu k;
    private static String z;

    rs(int l, jm jm, ks ks1, ws ws1, yg yg)
    {
        super(l, jm);
        i = ks1;
        j = ws1;
        a(yg);
    }

    rs(at at, ks ks1, ws ws1)
    {
        super(((is) (at)).e, ((is) (at)).f);
        i = ks1;
        j = ws1;
    }

    public ks a()
    {
        return i;
    }

    public String h()
    {
        return i.h() + z + j.h();
    }

    public String b()
    {
        return i.b();
    }

    public final String m()
    {
        return j.b();
    }

    public final String n()
    {
        return j.n();
    }

    public iu o()
    {
        return k;
    }

    public final String k()
    {
        return i.h() + "." + j.k();
    }

    boolean a(String s, String s1, String s2)
    {
        return i.b().equals(s) && n().equals(s1) && m().equals(s2);
    }

    void a(Hashtable hashtable, Hashtable hashtable1)
    {
        hashtable1.put(j, j);
        j.b(hashtable);
    }

    final void p()
    {
        if(k != null)
        {
            String s = n();
            String s1 = k.w();
            if(!s.equals(s1))
                j.a(s1);
        }
    }

    public ws a(ws ws1)
    {
        ws ws2 = j;
        j = ws1;
        return ws2;
    }

    abstract void a(yg yg);

    static xs b(int l, jb jb, jm jm)
        throws IOException
    {
        jb.skipBytes(4);
        return xs.a(jm, 1);
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeByte(l());
        dataoutputstream.writeShort(i.j());
        dataoutputstream.writeShort(j.j());
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable)
        throws IOException
    {
label0:
        {
            dataoutputstream.writeByte(l());
            dataoutputstream.writeShort(i.j());
            ws ws1 = (ws)hashtable.get(j);
            if(ws1 != null)
            {
                dataoutputstream.writeShort(ws1.j());
                if(!is.g)
                    break label0;
            }
            dataoutputstream.writeShort(j.j());
        }
    }
                    private static String dees(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x15;
                    break;
                case 1:
                    key = 55;
                    break;
                case 2:
                    key = 75;
                    break;
                case 3:
                    key = 123;
                    break;
                default:
                    key = 111;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
    static
    {
        z = dees("5\027".toCharArray());

    }
}